package com.cf.game.cowboy.msg;


import com.cf.game.cowboy.config.EnumH5GameMessageType;
import com.cf.game.cowboy.vo.StakeGroupVo;
import com.cf.game.service.constants.EnumReturnCode;
import com.cf.serialize.Response;

import java.util.List;


/**
 * cf-game-CowQueryRequest
 * 同步游戏信息
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/3/27 11:41
 */

public class CowGameInfoResponse extends Response {

    /**
     * 是否可以玩
     */
    private boolean canPlay = false;

    /**
     * 游戏状态
     */
    private List<StakeGroupVo> stakeGroups;


    private Integer winIndex;

    private Long leftTime = 0l;

    public static Integer type = EnumH5GameMessageType.COW_BOY_GAME_INFO_QUERY_RESULT.getType();

    public CowGameInfoResponse() {
        super("处理成功！", EnumReturnCode.SUCCESS.getCode());
    }

    public CowGameInfoResponse(String msg, Integer code, boolean canPlay) {
        super(msg, code);
        this.canPlay = canPlay;
    }

    public CowGameInfoResponse(boolean canPlay, String msg, Integer code, List<StakeGroupVo> stakeGroups, Long leftTime) {
        super(msg, code);
        this.canPlay = canPlay;
        this.stakeGroups = stakeGroups;
        this.leftTime = leftTime;
    }

    public CowGameInfoResponse(String msg, Integer code, List<StakeGroupVo> stakeGroups, Long leftTime) {
        super(msg, code);
        this.stakeGroups = stakeGroups;
        this.leftTime = leftTime;
    }

    public Long getLeftTime() {
        return leftTime;
    }

    public void setLeftTime(Long leftTime) {
        this.leftTime = leftTime;
    }

    public boolean getCanPlay() {
        return canPlay;
    }

    public void setCanPlay(boolean canPlay) {
        this.canPlay = canPlay;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        CowGameInfoResponse.type = type;
    }

    public List<StakeGroupVo> getStakeGroups() {
        return stakeGroups;
    }

    public void setStakeGroups(List<StakeGroupVo> stakeGroups) {
        this.stakeGroups = stakeGroups;
    }


    public boolean isCanPlay() {
        return canPlay;
    }

    public Integer getWinIndex() {
        return winIndex;
    }

    public void setWinIndex(Integer winIndex) {
        this.winIndex = winIndex;
    }

    @Override
    public Integer messageType() {
        return type;
    }
}
